layui.use(["upload"], function() {
				var upload = layui.upload;
				//普通图片上传
				var uploadInst = upload.render({
					elem: '#upload',
					url: 'https://httpbin.org/post', //改成您自己的上传接口
					before: function(obj) {
						//预读本地文件示例，不支持ie8
						obj.preview(function(index, file, result) {
							//console.log(index,file,result)
							$('#showImg').attr('src', result); //图片链接（base64）
						});
					},
					done: function(res) {
						
					}
				});


			})